import Vue from 'vue'
import './cube-ui'

import App from './App.vue'
import router from './router'
import store from './store'
import moment from 'moment/moment'

// import axios from '../baseurl'
// import axios from 'axios'
import Vant from 'vant'
import 'vant/lib/index.css'

import '../src/assets/reset.css'
import '../src/assets/mixin.scss'
import '../src/assets/icon.css'
import '../src/assets/transnation.css'

// 时间戳转化为年月日格式
Vue.filter('moment', function (value, formatString) {
  formatString = formatString || 'YYYY-MM-DD HH:mm:ss'
  return moment(value).format(formatString)
})

// axios.defaults.baseURL = ' http://localhost:8080'
Vue.use(Vant)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
